<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"></meta>
<script type="text/javascript">
  var video;
  function init() {
    video = document.getElementById("video1");
    video.addEventListener("ended", function() {
      alert("終了しました");
    }, true);
  }
  function play() {
    video.play();
  }
  function pause() {
    video.pause();
  }
  function fastforward() {
    video.playbackRate += .2;
  }

</script>
</head>
<body onload="init()">
  <video id="video1" controls width="400">
  <source src="http://upload.wikimedia.org/wikipedia/commons/a/a5/20090124_WeeklyAddress.ogv" type="video/ogg">
  </video><br/>
  <button onclick="play()">再生</button>
  <button onclick="pause()">一時停止</button>
  <button onclick="fastforward()">早送り</button>
</body>
</html>
